package com.ruoyi.boat.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 报警对象 t_alert
 *
 * @author ruoyi
 * @date 2023-08-01
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class Alert extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 艇id
     */
    private Long boatId;

    /**
     * 艇编号
     */
    @Excel(name = "艇编号")
    private String boatCode;

    /**
     * 开关量比特位
     */
    private Long bit;

    /**
     * 报警类型 0 超时 1 超速 2 开关量
     */
    @Excel(name = "报警类型", readConverterExp = "0=开关量,1=超时,2=超速,3=低电量,4=恶意靠近")
    private Integer type;

    /**
     * 开关量类型
     */
    @Excel(name = "开关量类型")
    private Integer bitType;

    /**
     * 报警值 超时 秒 超速 节 状态 状态值
     */
    @Excel(name = "报警值")
    private Integer value;

    /**
     * 状态 0 正常 1报警
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=报警")
    private Integer status;

}
